﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="scripts.ascx.cs" Inherits="templates_client_usercontrols_scripts" %>

    <script src='<%= ResolveUrl("~/templates/client/scripts/yoxview/yoxview-init.js") %>' type="text/javascript"></script>
    <script src='<%= ResolveUrl("~/templates/client/scripts/yoxview/jquery.yoxview-2.2.min.js") %>' type="text/javascript"></script>
    
    <!--<script src='<%= ResolveUrl("http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js") %>' type="text/javascript"></script>-->
    <script src='<%= ResolveUrl("~/templates/client/scripts/jquery-ui.min.js") %>' type="text/javascript"></script>
    <script type="text/javascript">
	$(document).ready(function(){
		$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
	});
    </script>
    <script type="text/javascript">
        nsp='Old browser!';dl=document.layers;oe=window.opera?1:0;da=document.all&&!oe;ge=document.getElementById;ws=window.sidebar?true:false;tN=navigator.userAgent.toLowerCase();izN=tN.indexOf('netscape')>=0?true:false;zis=tN.indexOf('msie 7')>=0?true:false;zis8=tN.indexOf('msie 8')>=0?true:false;zis|=zis8;if(ws&&!izN){quogl='iuy'};var msg='';function nem(){return true};window.onerror = nem;zOF=window.location.protocol.indexOf("file")!=-1?true:false;i7f=zis&&!zOF?true:false;if(da){document.ondragstart=function (){return false};function cIE(){(msg);return false};function cc(){document.oncontextmenu=cIE;setTimeout("cc()",200)};cc()};function cNS(e){if(dl||ws){if(e.which==2||e.which==3){(msg);return false}}};if(dl){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=cNS}else{document.onmouseup=cNS};document.oncontextmenu=new Function("return false");if(oe){function ro(e){if(event.button==2){alert(' ');return 0};return true};document.onmousedown=ro};if(zis8){window.attachEvent('onload',qy9)};
    </script>
    
<script src='<%= ResolveUrl("~/templates/client/scripts/hoverIntent.js") %>' type="text/javascript"></script>
<script src='<%= ResolveUrl("~/templates/client/scripts/superfish.js") %>' type="text/javascript"></script>
<script src='<%= ResolveUrl("~/templates/client/scripts/jquery.idTabs.min.js") %>' type="text/javascript"></script>
<script src='<%= ResolveUrl("~/templates/client/scripts/tooltip.js") %>' type="text/javascript"></script>
<script src='<%= ResolveUrl("~/templates/client/scripts/flowplayer-3.2.6.min.js") %>' type="text/javascript"></script>
<script src='<%= ResolveUrl("~/templates/client/scripts/jquery.easing.js") %>' type="text/javascript"></script>
<script src='<%= ResolveUrl("~/templates/client/scripts/slideheader.js") %>' type="text/javascript"></script>

<!-- Script chạy slideshow images-->
    <script type="text/javascript">
        $(document).ready(function () {
            var buttons = { previous: $('#lofslidecontent45 .lof-previous'),
                next: $('#lofslidecontent45 .lof-next')
            };

            $obj = $('#lofslidecontent45').lofJSidernews({ interval: 4000,
                direction: 'opacity',
                easing: 'easeOutBounce',
                duration: 1200,
                auto: true,
                mainWidth: 220,
                buttons: buttons
            });
        });
    </script>
 
 <!-- script inline cho menu ngang và menu doc-->
    <script type="text/javascript"> 
     
        $(document).ready(function(){ 
            $('#menu_main').superfish({
		        pathClass: 'current'
	        });            
        }); 
        
    </script>
    
    <script type="text/javascript" language="JavaScript">
    function startclock() {
        var thetime = new Date();
        var nhours = thetime.getHours();
        var nmins = thetime.getMinutes();
        var nsecn = thetime.getSeconds();
        var day = thetime.getDay();
        var date = thetime.getDate();
        var month = thetime.getMonth() + 1;
        var year = thetime.getFullYear();
        var AorP = " ";
        if (nhours >= 12)
            AorP = "PM";
        else
            AorP = "AM";
        if (nhours >= 13)
            nhours -= 12;
        if (nhours == 0)
            nhours = 12;
        if (nsecn < 10)
            nsecn = "0" + nsecn;
        if (nmins < 10)
            nmins = "0" + nmins;
        if(day == 0)
        {
            day = "Chủ nhật";
        }
        else if(day==1)
        {
            day= "Thứ hai";
        }
        else if(day==2)
        {
            day= "Thứ ba";
        }
        else if(day==3)
        {
            day= "Thứ tư";
        }
        else if(day==4)
        {
            day= "Thứ năm";
        }
        else if(day==5)
        {
            day= "Thứ sáu";
        }
        else
        {
            day= "Thứ bảy";
        }
        document.getElementById('mylabel').innerHTML = "<font color=#FFF>" + nhours + ":" + nmins + ":" + nsecn + " " + AorP + " | " + day + " - " + date + "/" + month + "/" + year + "</font>";
        setTimeout('startclock()', 1000);
    } 
</script>
    
    <!-- Scripts menu vertical  -->     
    <script type="text/javascript"> 
        startList = function() {
         
	        // code for IE
	        if(!document.body.currentStyle) return;
	        var subs = document.getElementsByName('submenu');
	        for(var i=0; i<subs.length; i++) {
		        var li = subs[i].parentNode;
		        if(li && li.lastChild.style) {
			        li.onmouseover = function() {
				        this.lastChild.style.visibility = 'visible';
			        }
			        li.onmouseout = function() {
				        this.lastChild.style.visibility = 'hidden';
			        }
		        }
	        }
        }
        window.onload=startList;
    </script>
    